﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Sicoagro.Models.Ofertante>" %>



<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SOFTWARE FACTORY
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <h2> Nuevo Ofertante </h2>
    <script language="javascript" type="text/javascript">
        function mensaje() {
            alert("Los datos se guardaron correctamente");
            /*window.close();*/
        }
        </script>
    <script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

   
<% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Datos</legend>

            <table align="center">

            <tr>
                <td><%: Html.LabelFor(model=>model.CodOfertante) %></td>
                <td><%: Html.TextBoxFor(model => model.CodOfertante) %></td>
            </tr>

            <tr>
            <td><%: Html.LabelFor(model=>model.TipoDocOfertante) %></td>
            <td>
            <select id="depTipoDocSelect" name="depTipoDocSelect">
            <option value="DNI">DNI</option>
            <option value="RUC">RUC</option>
            <option value="Carnet de Extranjeria">Carnet de Extranjeria</option>
            <option value="Pasaporte">Pasaporte</option>
            </select>           
            </td>       
            </tr>
            
            <tr>
                <td><%: Html.LabelFor(model => model.NumDocOfertante)%></td>
                <td><%: Html.TextBoxFor(model => model.NumDocOfertante) %></td>
                <td><%: Html.ValidationMessageFor(model => model.NumDocOfertante) %></td>
            </tr>
            
            <tr>
                <td><%: Html.LabelFor(model => model.EmailOfertante) %></td>
                <td><%: Html.TextBoxFor(model => model.EmailOfertante) %></td>
                <td><%: Html.ValidationMessageFor(model => model.EmailOfertante) %></td>
            </tr>
            
            <tr>
                <td><%: Html.LabelFor(model => model.UsuarioOfertante) %></td>
                <td><%: Html.TextBoxFor(model => model.UsuarioOfertante) %></td>
            </tr>
            
            <tr>           
                <td><%: Html.LabelFor(model => model.ClaveOfertante) %></td>
                <td><%: Html.TextBoxFor(model => model.ClaveOfertante) %></td>
                <td><%: Html.ValidationMessageFor(model => model.ClaveOfertante) %></td>
            </tr>
            
            <tr>  
                <td><%: Html.LabelFor(model => model.RazonSocial) %></td>
                <td><%: Html.TextBoxFor(model => model.RazonSocial) %></td>
                <td><%: Html.ValidationMessageFor(model => model.RazonSocial) %></td>
            </tr>

            <tr> 
                <td><%: Html.LabelFor(model => model.DepOfertante) %></td>
            <td>
            <select id="depSelect" name="depSelect">
            <option value="Lima">Lima</option>
            </select>
            </td>
            </tr>

            <tr> 
                <td><%: Html.LabelFor(model=>model.ProvOfertante) %></td>
            <td>
            <select id="provSelect" name="provSelect">
            <option value="Lima">Lima</option>
            </select>
            </td>
            </tr>

            <tr> 
                <td><%: Html.LabelFor(model => model.DistOfertante ) %></td>
            <td>
            <select id="distSelect" name="distSelect">
            <option value="Ate">Ate</option>
            <option value="Barranco">Barranco</option>
            <option value="Breña">Breña</option>
            <option value="Cercado de Lima">Cercado de Lima</option>
            <option value="Chorrillos">Chorrillos</option>
            <option value="Comas">Comas</option>
            <option value="El Agustino">El Agustino</option>
            <option value="Independencia">Independencia</option>
            <option value="Jesus Maria">Jesus Maria</option>
            <option value="Lince">Lince</option>
            <option value="La Molina">La Molina</option>
            <option value="Miraflores">Miraflores</option>
            <option value="Magdalena">Magdalena</option>
            <option value="Puente Piedra">Puente Piedra</option>
            <option value="Pueblo Libre">Pueblo Libre</option>
            <option value="Rimac">Rimac</option>
            <option value="Surco">Surco</option>
            <option value="San Miguel">San Miguel</option>
            <option value="Santa Rosa">Santa Rosa</option>
            <option value="San Martin de Porres">San Martin de Porres</option>
            <option value="San Juan de Lurigancho">San Juan de Lurigancho</option>
            <option value="Villa el Salvado">Villa el Salvador</option>
            <option value="Villa Maria del Triunfo">Villa Maria del Triunfo</option>
            <option value="Zarate">Zarate</option>
            </select>
            </td>
            </tr>

            <tr> 
                <td><%: Html.LabelFor(model => model.DirecOfertante) %></td>
                <td><%: Html.TextBoxFor(model => model.DirecOfertante) %></td>
            </tr>

            <tr>
                <td><%: Html.LabelFor(model => model.NumTelefOfertante) %></td>
                <td><%: Html.TextBoxFor(model => model.NumTelefOfertante) %></td>
            </tr>

            <tr>

             <td><%: Html.LabelFor(model=>model.FlgMembresia) %></td>
             <td>
               <select id="Select2" name="flgMemSelect">
            <option value="true">Si</option>
               <option value="false">No</option>
            </select>
             </td>
           
            
            </tr>
            </table>

             <p align="center">
                <input type="submit" value="Guardar" onclick="mensaje();" />
            </p>   

        </fieldset>


            <% } %>

</asp:Content>